package com.bicon.base.data.pojo.botu;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 订单明细表
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("t_m_order_item")
public class TMOrderItem extends Model<TMOrderItem> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单项id
     */
    private String id;
    /**
     * 订单ID
     */
    @TableField("order_id")
    private String orderId;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 店铺id
     */
    @TableField("store_id")
    private String storeId;
    /**
     * 商品id
     */
    @TableField("goods_id")
    private String goodsId;
    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;
    /**
     * 商品货号
     */
    @TableField("goods_code")
    private String goodsCode;
    /**
     * 商品类型（1:定制商品, 2:普通商品）
     */
    @TableField("goods_type")
    private Integer goodsType;
    /**
     * skuid
     */
    @TableField("sku_id")
    private String skuId;
    /**
     * sku名称
     */
    @TableField("sku_name")
    private String skuName;
    /**
     * 商品数量
     */
    @TableField("goods_number")
    private Integer goodsNumber;
    /**
     * 商品单价
     */
    @TableField("goods_price")
    private BigDecimal goodsPrice;
    /**
     * 商品总价
     */
    @TableField("goods_total_amount")
    private BigDecimal goodsTotalAmount;
    /**
     * 运费金额
     */
    @TableField("freight_amount")
    private BigDecimal freightAmount;
    /**
     * 优惠金额
     */
    @TableField("discount_amount")
    private BigDecimal discountAmount;
    /**
     * 支付金额
     */
    @TableField("pay_amount")
    private BigDecimal payAmount;
    /**
     * 售后记录ID
     */
    @TableField("after_sale_record_id")
    private String afterSaleRecordId;
    /**
     * 逻辑删除（0正常，1删除）
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public Integer getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(Integer goodsType) {
        this.goodsType = goodsType;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsTotalAmount() {
        return goodsTotalAmount;
    }

    public void setGoodsTotalAmount(BigDecimal goodsTotalAmount) {
        this.goodsTotalAmount = goodsTotalAmount;
    }

    public BigDecimal getFreightAmount() {
        return freightAmount;
    }

    public void setFreightAmount(BigDecimal freightAmount) {
        this.freightAmount = freightAmount;
    }

    public BigDecimal getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(BigDecimal discountAmount) {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public String getAfterSaleRecordId() {
        return afterSaleRecordId;
    }

    public void setAfterSaleRecordId(String afterSaleRecordId) {
        this.afterSaleRecordId = afterSaleRecordId;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TMOrderItem{" +
        "id=" + id +
        ", orderId=" + orderId +
        ", userId=" + userId +
        ", storeId=" + storeId +
        ", goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", goodsCode=" + goodsCode +
        ", goodsType=" + goodsType +
        ", skuId=" + skuId +
        ", skuName=" + skuName +
        ", goodsNumber=" + goodsNumber +
        ", goodsPrice=" + goodsPrice +
        ", goodsTotalAmount=" + goodsTotalAmount +
        ", freightAmount=" + freightAmount +
        ", discountAmount=" + discountAmount +
        ", payAmount=" + payAmount +
        ", afterSaleRecordId=" + afterSaleRecordId +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
